
package it4s.service.ip2geo.jaxws;

import java.net.MalformedURLException;
import java.net.URL;
import java.util.logging.Logger;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
import javax.xml.ws.WebServiceFeature;


/**
 * Our system uses a multiple sources for resolution.  Including a host database, trace route information, and other systems.  Resolves IP addresses to Organization, Country, City, and State/Province, Latitude, Longitude.  In most US cities it will also provide some extra information such as Area Code, and more.
 * 
 * This class was generated by the JAX-WS RI.
 * JAX-WS RI 2.1.6 in JDK 6
 * Generated source version: 2.1
 * 
 */
@WebServiceClient(name = "IP2Geo", targetNamespace = "http://ws.cdyne.com/", wsdlLocation = "http://ws.cdyne.com/ip2geo/ip2geo.asmx?WSDL")
public class IP2Geo
    extends Service
{

    private final static URL IP2GEO_WSDL_LOCATION;
    private final static Logger logger = Logger.getLogger(it4s.service.ip2geo.jaxws.IP2Geo.class.getName());

    static {
        URL url = null;
        try {
            URL baseUrl;
            baseUrl = it4s.service.ip2geo.jaxws.IP2Geo.class.getResource(".");
            url = new URL(baseUrl, "http://ws.cdyne.com/ip2geo/ip2geo.asmx?WSDL");
        } catch (MalformedURLException e) {
            logger.warning("Failed to create URL for the wsdl Location: 'http://ws.cdyne.com/ip2geo/ip2geo.asmx?WSDL', retrying as a local file");
            logger.warning(e.getMessage());
        }
        IP2GEO_WSDL_LOCATION = url;
    }

    public IP2Geo(URL wsdlLocation, QName serviceName) {
        super(wsdlLocation, serviceName);
    }

    public IP2Geo() {
        super(IP2GEO_WSDL_LOCATION, new QName("http://ws.cdyne.com/", "IP2Geo"));
    }

    /**
     * 
     * @return
     *     returns IP2GeoSoap
     */
    @WebEndpoint(name = "IP2GeoSoap")
    public IP2GeoSoap getIP2GeoSoap() {
        return super.getPort(new QName("http://ws.cdyne.com/", "IP2GeoSoap"), IP2GeoSoap.class);
    }

    /**
     * 
     * @param features
     *     A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy.  Supported features not in the <code>features</code> parameter will have their default values.
     * @return
     *     returns IP2GeoSoap
     */
    @WebEndpoint(name = "IP2GeoSoap")
    public IP2GeoSoap getIP2GeoSoap(WebServiceFeature... features) {
        return super.getPort(new QName("http://ws.cdyne.com/", "IP2GeoSoap"), IP2GeoSoap.class, features);
    }

}
